package ru.bragnikita.test.ws.math.service;

import javax.xml.bind.annotation.*;

/**
 * Created with IntelliJ IDEA.
 * User: Nikita
 * Date: 27.01.13
 * Time: 18:13
 * To change this template use File | Settings | File Templates.
 */
@XmlType(name = "EvalResultType", namespace = Constants.SERVICE_TYPES_NS)
@XmlAccessorType(XmlAccessType.FIELD)
public class EvaluationResult {

    @XmlAttribute(name = "eval", required = true)
    private boolean isEvaluated;
    @XmlElement(name = "intRes")
    private Integer intResult;
    @XmlElement(name = "doubleRes")
    private Double doubleResult;
    @XmlElement(name = "error")
    private String errorText;

    public boolean isEvaluated() {
        return isEvaluated;
    }

    public void setEvaluated(boolean evaluated) {
        isEvaluated = evaluated;
    }

    public Integer getIntResult() {
        return intResult;
    }

    public void setIntResult(Integer intResult) {
        this.intResult = intResult;
    }

    public Double getDoubleResult() {
        return doubleResult;
    }

    public void setDoubleResult(Double doubleResult) {
        this.doubleResult = doubleResult;
    }

    public String getErrorText() {
        return errorText;
    }

    public void setErrorText(String errorText) {
        this.errorText = errorText;
    }
}
